<?php $this->beginContent('//layouts/main'); ?>
<div class="box">
    <header>
        <h5><i class="icon icon-calendar"></i> - Calendar</h5>
    </header>
    <div class="body">
        <div class="row-fluid">
            <div class="span12">
                <div class="span3">
                    <div class="well well-small">
                        <div id="add-event-form">
                            <?php
                            if (Yii::app()->controller->module->calendarOptions['cronPeriod']) {
                                $this->beginWidget('zii.widgets.CPortlet', array(
                                    'title' => Yii::t('CalModule.fullCal', 'Operations'),
                                ));
                                echo CHtml::link(Yii::t('CalModule.EventsUserPreference', 'Preference'), '#', array('onclick' => "$('#dlg_Userpreference').dialog('open');"));
                                $this->endWidget();
                            }
                            ?>

                            <?php $this->widget('EventHelper', array('userId' => Yii::app()->user->getState('calUserId'))); ?>

                            <?php //$this->widget('ChangeUser', array('userId' => Yii::app()->user->getState('calUserId'))); ?>
                        </div>
                    </div>
                </div>
                <div class="span9">
                    <?php echo $content; ?>
                </div>
            </div>
        </div>

    </div>
</div>

<?php $this->endContent(); ?>